home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Periodicals / develop / develop Issue 9 / develop 9 code / Tracks / dumptracks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-16  |  1.4 KB  |  64 lines  |  [TEXT/MPS ]

  1. #ifndef __DUMPTRACKS__
  2. #define __DUMPTRACKS__
  3.  
  4. #define GOLD
  5.  
  6. #include "TraceModule.h"    // Contains trace template...
  7.  
  8. #define    kMaskStringListID    777        // ID of STR# list that is used by this tool
  9.  
  10. typedef char *BytePtr;
  11.  
  12. typedef    struct
  13. {
  14.     Str31    FieldName;
  15.     Str31    Type;
  16.     short    Count;
  17. } Field, *FieldPtr;
  18.  
  19. typedef struct
  20. {
  21.     Str31        TemplateName;
  22.     short        NumFields;
  23.     FieldPtr     Fields;
  24. } Template, *TemplatePtr;
  25.  
  26. typedef struct 
  27. {
  28.     short NumTemplates;
  29.     Template FirstTemplate;
  30.  
  31. }    Tmpl, *TmplPtr, **TmplHandle;
  32.  
  33.  
  34. short GetFolderVol(OSType type);
  35.  
  36. snum DecodeSym(char *stringBuffer, char *sym, Boolean showTypeInfo, Ptr stackdataPtr);
  37. void CopyEbcdicToAscii(chex *ascii, chex *toEbcdic, shex dataLength);
  38.  
  39. void PrintRecord(snum length);
  40. void PrintFmt01(char *fmt01Ptr);
  41. void PrintFmt02(Ptr dataPtr, short dataLength);
  42. void PrintFmt04(long dataLong);
  43. void PrintFmt05(BytePtr data);
  44. void PrintFmt06(BytePtr data);
  45. void ParseArgs(int argc, char **argv);
  46. snum ReadFileRecords(short refNum);
  47. void PrintTimeAndDate(long    timestamp);
  48. BytePtr PrettyDump(BytePtr    data, BytePtr typeString);
  49.  
  50. void ParseIt(void);
  51. BytePtr PrintPStr(BytePtr str);
  52. BytePtr HandleTemplate(BytePtr templ, Boolean printOn);
  53. BytePtr HandleField(BytePtr field, Boolean printOn);
  54. BytePtr HandleType(Str31 Type, BytePtr wh);
  55. BytePtr DMWithTemplate (BytePtr wh, char *searchType);
  56.  
  57. short    TypeDumpSetUp(short sysFolder);
  58. void TypeDumpCloseDown(void);
  59. BytePtr SkipPStr(BytePtr str);
  60.  
  61.  
  62.  
  63. #endif
  64.